﻿using System.Windows;
using System.Windows.Controls;

namespace Waaahsabi.Controls.FileSystem
{
	public class SystemFileItem : Control, IFileItem
	{

		#region FileName DependencyProperty
		public static readonly DependencyProperty FileNameProperty =
		DependencyProperty.Register
			(
			"FileName",
			typeof(string),
			typeof(SystemFileItem),
			new PropertyMetadata("Filename not set")
			);

		public string FileName
		{
			get { return (string)GetValue(FileNameProperty); }
			set { SetValue(FileNameProperty, value); }
		}
		#endregion

		#region FileSize DependencyProperty
		public static readonly DependencyProperty FileSizeProperty =
		DependencyProperty.Register
			(
			"FileSize",
			typeof(string),
			typeof(SystemFileItem),
			new PropertyMetadata("9999")
			);

		public string FileSize
		{
			get { return (string)GetValue(FileSizeProperty); }
			set { SetValue(FileSizeProperty, value); }
		}
		#endregion

		#region FileType DependencyProperty
		public static readonly DependencyProperty FileTypeProperty =
		DependencyProperty.Register
			(
			"FileType",
			typeof(string),
			typeof(SystemFileItem),
			new PropertyMetadata("FileType not set")
			);

		public string FileType
		{
			get { return (string)GetValue(FileTypeProperty); }
			set { SetValue(FileTypeProperty, value); }
		}
		#endregion

		public SystemFileItem()
		{
			DefaultStyleKey = typeof(SystemFileItem);
		}

		public ulong FileId
		{
			get; set;
		}
	}
}
